package cn.com.qmth.stmms.exam.domain.entity;

import java.io.Serializable;

import javax.persistence.Column;
import javax.persistence.Embedded;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;

import cn.com.qmth.stmms.exam.domain.vo.StudentInfo;

import com.qmth.stmms.commons.domain.entity.BaseEntity;

@Entity
@Table(name="exam_paper")
public class ExamPaper extends BaseEntity{

	private static final long serialVersionUID = -3779464789138952974L;

	@Id
	@Column(name="paper_id")
	private String paperId;
	
	@Column(name="exam_id")
	private long examId;
	
	@Column(name="subject_id")
	private long subjectId;
	
	@Column(name="bag_number",length=20)
	private String bagNumber;
	
	@Embedded
	private StudentInfo studentInfo;
	
	private double score;
	
	@Override
	protected Serializable getId() {
		return this.getPaperId();
	}

	public String getPaperId() {
		return paperId;
	}

	public void setPaperId(String paperId) {
		this.paperId = paperId;
	}

	public long getExamId() {
		return examId;
	}

	public void setExamId(long examId) {
		this.examId = examId;
	}

	public long getSubjectId() {
		return subjectId;
	}

	public void setSubjectId(long subjectId) {
		this.subjectId = subjectId;
	}

	public double getScore() {
		return score;
	}

	public void setScore(double score) {
		this.score = score;
	}

	
}
